From d3c427a7675796065737673227cfbc9430ee888a Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 14 Jun 2011 21:14:48 -0400 Subject: [PATCH] Don't forget to cleanup varargs --- gtk/gtkliststore.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/gtk/gtkliststore.c b/gtk/gtkliststore.c index 4671bfe035..1844a8bbcf 100644 --- a/gtk/gtkliststore.c +++ b/gtk/gtkliststore.c @@ -445,11 +445,13 @@ gtk_list_store_new (gint n_columns, { GType type = va_arg (args, GType); if (! _gtk_tree_data_list_check_type (type)) - { - g_warning ("%s: Invalid type %s\n", G_STRLOC, g_type_name (type)); - g_object_unref (retval); - return NULL; - } + { + g_warning ("%s: Invalid type %s\n", G_STRLOC, g_type_name (type)); + g_object_unref (retval); + va_end (args); + + return NULL; + } gtk_list_store_set_column_type (retval, i, type); } -- 2.30.2